package com.boil.qz.safekavass.web.request.param;

import com.boil.util.Constants;
import org.hibernate.validator.constraints.Length;

/**
 * Created by ChenYong on 2017-07-12.
 * <br>
 * 角色列表的请求参数。
 */
public class RoleListParam extends Page2Param {
    /**
     * 角色名称
     */
    @Length(min = Constants.VALUE_0, max = Constants.VALUE_50, message = "角色名称的长度在1至50个字之间")
    private String roleName;
    /**
     * 角色代码
     */
    @Length(min = Constants.VALUE_0, max = Constants.VALUE_50, message = "角色代码的长度在0至50个字符之间")
    private String roleCode;

    /**
     * 默认构造器。
     */
    public RoleListParam() {
        super();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("RoleListParam{");
        sb.append("roleName='").append(roleName).append('\'');
        sb.append(", roleCode='").append(roleCode).append('\'');
        sb.append(", sEcho=").append(sEcho);
        sb.append(", iColumns=").append(iColumns);
        sb.append(", iSortingCols=").append(iSortingCols);
        sb.append(", iDisplayStart=").append(iDisplayStart);
        sb.append(", iDisplayLength=").append(iDisplayLength);
        sb.append(", startDate='").append(startDate).append('\'');
        sb.append(", endDate='").append(endDate).append('\'');
        sb.append('}');
        return sb.toString();
    }
}